//
//  SHENetTypeUtils.h
//  SHEPuzzleFigure
//
//  Created by SW mini on 2019/12/17.
//  Copyright © 2019 Figure. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import <netinet/in.h>

typedef enum : NSInteger {
    NotReachable = 0,
    ReachableViaWiFi,
    ReachableViaWWAN,
    kReachableVia2G,
    kReachableVia3G,
    kReachableVia4G
} NetworkStatus;

NS_ASSUME_NONNULL_BEGIN

@interface SHENetTypeUtils : NSObject

/*!
 * Use to check the reachability of a given host name.
 */
+ (instancetype)reachabilityWithHostName:(NSString *)hostName;

- (NetworkStatus)currentReachabilityStatus;

@end

NS_ASSUME_NONNULL_END
